package com.niit.session10;

public class Cleanner {
//	程序员有姓名、性别、年龄、工资、学历五个属性和打代码一个成员方法。
//	第一步：把所有属性加上private
	private String name;
	private String gender;
	private int age;
	private double money;
	public void cleaning() {
		System.out.println(name+"开始扫地了！");
	}
//第二步：创建构造方法
//	快捷键：alt+shitf+s 选择generate constructor using fields
	public Cleanner() {
		
	}

	public Cleanner(String name, String gender, int age, double money) {
		this.name = name;
		this.gender = gender;
		this.age = age;
		this.money = money;
	}
//	第三步：添加set和set方法
//	快捷键：alt+shitf+s 选择generate setters and getters

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

}
